#pragma once

#include <QWidget>
#include "ui_LockWidget_RFV42.h"
#include "Lock_RFV42.h"

class LockWidget_RFV42: public QWidget
{
	Q_OBJECT

public:
    LockWidget_RFV42();	
	~LockWidget_RFV42();	

	void init();
	Lock_RFV42 *lock;	

protected slots:
	void on_btnComInit_clicked();
	void on_btnComUninit_clicked();
	void on_btnReadCard_clicked();
	void on_btnWriteCard_clicked();

private:		
	void reportError(int err);

	Ui::LockWidget_RFV42 ui;
};